Skip to content

Conversation

kiendang
Copy link
Contributor

Discover this small "typo" while working on #1413.

<Mock>.called_once() just returns a Mock, so assert <Mock>.called_once() always passes. We want <Mock>.assert_called_once().

<Mock>.called_once() just returns a Mock, so assert <Mock>.called_once()
always passes. We want <Mock>.assert_called_once().
@ulgens ulgens force-pushed the fix-assert-called-once branch from a5391a8 to a04f011 Compare May 27, 2023 13:43
@firaskafri firaskafri merged commit 38709d8 into main May 27, 2023
@firaskafri firaskafri deleted the fix-assert-called-once branch May 27, 2023 13:53
superlevure pushed a commit to loft-orbital/graphene-django that referenced this pull request Jul 19, 2023
<Mock>.called_once() just returns a Mock, so assert <Mock>.called_once()
always passes. We want <Mock>.assert_called_once().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants